﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MyBind;

public partial class Communicate_left : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //生成树
        if(!Page.IsPostBack)
        {
            this.TreeView2.Nodes.Clear();//清空节点
            string mid=Request.QueryString["mid"];
            //根据mid查询数据，绑定到树
            ControlBind objBind = new ControlBind();
            objBind.treeBind(this.TreeView2, int.Parse(mid));
        }
    }
}
